const app = getApp();
Page({
  data: {
    src: `${app.globalData.javaApi}/api/print/external/uploadLocal`
  },
  onLoad: function (options) {
    let value = wx.getStorageSync("token")
    console.log(value)
    this.setData({
      src: `${app.globalData.javaApi}/api/print/external/uploadLocal?token=${value}&page_type=${options.page_type}`
    });
    this.options = options;
  },
  onShow: function () {
    if (!app.globalData.isLogin) {
      wx.reLaunch({
        url: '/pages/wode/index',
      })
      return;
    }
  },
})